package com.qf.medicaldoctoradmin.healthMonitor.monitor.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel(description = "用户健康监测参数类")
public class MonitorParam {

    //监测数据唯一标识符
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(name="id", value="id")
    private Integer id;

    //关联的患者ID
    @ApiModelProperty(name = "patientId", value = "用户/患者id")
    private Integer patientId;

    //收缩压
    @ApiModelProperty(name = "highBloodPressure", value = "收缩压")
    private Double highBloodPressure;

    //舒张压
    @ApiModelProperty(name = "lowBloodPressure", value = "舒张压")
    private Double lowBloodPressure;

    //餐前血糖水平
    @ApiModelProperty(name = "fastingBloodGlucose", value = "餐前血糖")
    private Double fastingBloodGlucose;

    //餐后血糖水平
    @ApiModelProperty(name = "postprandialBloodGlucose", value = "餐后血糖")
    private Double postprandialBloodGlucose;

    //体重
    @ApiModelProperty(name = "weight", value = "体重")
    private Double weight;

    //心率
    @ApiModelProperty(name = "heartRate", value = "心率")
    private Integer heartRate;

    //监测日期
    @ApiModelProperty(name = "monitorDate", value = "监测日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date monitorDate;


}
